package com.atguigu.gulimall.auth.config;

import org.springframework.context.annotation.Configuration;
import org.springframework.web.servlet.config.annotation.ViewControllerRegistry;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;

/**
 * @ClassName GulimallWebConfig
 * @Description TODO
 * @Detail 视图Controller，如果只需要跳转页面，而不需要处理业务逻辑，可以使用ViewController来配置页面的跳转
 * @Author MyPC
 * @Date 2020/7/11
 * @Version 1.0
 */
@Configuration
public class GulimallWebConfig implements WebMvcConfigurer{
    @Override
    public void addViewControllers(ViewControllerRegistry registry) {
//        registry.addViewController("/login.html").setViewName("login");
        registry.addViewController("/register.html").setViewName("register");
    }
}
